<?php
namespace app\yyq\controller;

use app\admin\model\EquipType;
use app\admin\model\YouLike;
use think\Controller;
use think\Db;

class Equip extends Controller
{
    public function equip()
    {

        $where['state'] = 1;
        // 查询猜你喜欢表
        $you_like = YouLike::where($where)->select();
        // 查询装备分类
        $equip_type = EquipType::where($where)->select();
        // 查询装备
        $equip = \app\admin\model\Equip::where($where)->select();
        return $this->fetch('equip',$this->getCommonData()
            +[
                'equipType' => $equip_type,
                'equip' => $equip,
                'you_like' => $you_like,
            ]
        );
    }
}